feat(inputs.prometheus): Add per-URL statistics on gather cycles#18944
feat(inputs.prometheus): Add per-URL statistics on gather cycles#18944nlgotz wants to merge 5 commits into
Conversation
|
Thanks so much for the pull request! |
|
!signed-cla |
|
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
|
The race, the nil-guard, and the redundant struct maps are all addressed, thanks. A few items are still open in the reworked
Both 1 and 2 fall out naturally if you account |
Summary
Adds 2 new internal metrics to the Prometheus input plugin.
connection_statussets the value to either 0 (connection failed) or 1 (connection succeeded).gathers_totalwhich has astatustag of eithersuccessorfailurethat increments on each gather.Checklist
Related issues
resolves #18943